<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.su.middle.Utils" %>
<jsp:useBean id="user" class="com.su.middle.User" scope="session"/>
<jsp:setProperty name="user" property="*"/>
<%
if (Utils.isLogged(user)) {
	response.sendRedirect("proposals.jsp");
}
%>

<jsp:include page="header.jsp" />

<h2>Вход</h2>

<form action="index.jsp" method="post">
<div class="basic-form">
	<label for="name">Вашето име:</label>
	<input type="text" id="name" name="name" value="" />
	<br />
	
	<label for="type">Вие сте:</label>
	<select id="type" name="type">
		<option value="0">Студент</option>
		<option value="1">Преподавател</option>
	</select>
	<br />
	
	<input type="submit" value="Вход" />	
</div>
</form>

<jsp:include page="footer.jsp" />